package com.xgy.userauthsystem.dto;

import jakarta.validation.constraints.Email;
import jakarta.validation.constraints.NotBlank;
import lombok.Getter;
import lombok.Setter;

/**
 * 邮箱验证码登录请求DTO
 */
@Setter
@Getter
public class EmailLoginRequest {

    @NotBlank(message = "邮箱不能为空")
    @Email(message = "邮箱格式不正确")
    private String email;

    @NotBlank(message = "验证码不能为空")
    private String code;

    @Override
    public String toString() {
        return "EmailLoginRequest{" +
                "email='" + email + '\'' +
                ", code='" + code + '\'' +
                '}';
    }
}